package com.yidu.service.impl;

import com.yidu.dao.BokeUserMapper;
import com.yidu.model.BokeUser;
import com.yidu.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>@Description: 用户</p>
 * <p>@author yidu-yuxigan</p>
 * <p>@Date:2021/1/17</p>
 * <p>@Time:13:38</p>
 */
@Service
public class UserServiceImpl implements UserService {

    @Resource
    BokeUserMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer userid) {
        return dao.deleteByPrimaryKey(userid);
    }

    @Override
    public int insert(BokeUser record) {
        return dao.insert(record);
    }

    @Override
    public int insertSelective(BokeUser record) {
        return dao.insertSelective(record);
    }

    @Override
    public BokeUser selectByPrimaryKey(Integer userid) {
        return dao.selectByPrimaryKey(userid);
    }

    @Override
    public int updateByPrimaryKeySelective(BokeUser record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BokeUser record) {
        return dao.updateByPrimaryKey(record);
    }

    @Override
    public BokeUser login(BokeUser user) {
        return dao.login(user);
    }
}
